//
//  XYIntroduceBookModel.swift
//  XYReadBook
//
//  Created by fox on 2017/9/8.
//  Copyright © 2017年 tsaievan. All rights reserved.
//

import UIKit

import ObjectMapper

/*
 "cat": "西方奇幻",
 "_id": "594369667abef0017295026a",
 "title": "吞噬世界之龙",
 "author": "风染丛林",
 "longIntro": "在北欧神话当中，北欧维京人崇敬的称呼我为缠绕世界之蛇——耶梦加德；在基督神话当中，基督徒们厌恶的称呼我为古龙、古蛇——撒旦；在希腊神话当中，诸神敬畏的称呼我为百首巨龙——提丰；在昆仑神话当中，巫祝们狂热的称呼我为烛龙——烛九阴……\r\n　　玛雅神话、佛教神话、斯拉夫神话、凯尔特神话、纳瓦特尔神话、日本神话、亚述神话、埃及神话、芬兰神话……\r\n　　在众多的神话传说当中，我以怪物之名穿梭往来，却只想找寻真相。\r\n　　……\r\n　　一个邪神的故事。\r\n　　Q群：111081248",
 "cover": "/agent/http%3A%2F%2Fimg.1391.com%2Fapi%2Fv1%2Fbookcenter%2Fcover%2F1%2F2044817%2F2044817_c1ba8f4010f14d75a1ed2cad1e90cbbf.jpg%2F",
 "site": "zhuishuvip",
 "majorCate": "奇幻",
 "minorCate": "西方奇幻",
 "banned": 0,
 "latelyFollower": 24871,
 "wordCount": 276487,
 "retentionRatio": 37.72
 */

class XYIntroduceBookModel: BaseResponse {
    
    var books:[XYIntroduceModel] = []
    override func mapping(map: Map) {
        books  <- map["books"]
    }
    
}
class XYIntroduceModel: BaseResponse {
    var cat: String = ""
    var id:String = ""
    var title:String = ""
    var author:String = ""
    var longIntro:String = ""
    var cover:String = ""
    var site:String = ""
    var majorCate:String = ""
    var minorCate:String = ""
    var banned:Int = 0
    var latelyFollower:Double = 0
    var wordCount:Double = 0
    var lastChapter:Double = 0
    var retentionRatio:[String] = []
    var shortIntro:String = ""

    
    
    override func mapping(map: Map) {
        cat                         <- map["cat"]
        id                          <- map["_id"]
        title                       <- map["title"]
        author                      <- map["author"]
        longIntro                   <- map["longIntro"]
        cover                       <- map["cover"]
        site                        <- map["site"]
        majorCate                   <- map["majorCate"]
        minorCate                   <- map["minorCate"]
        banned                      <- map["banned"]
        wordCount                   <- map["wordCount"]
        latelyFollower              <- map["latelyFollower"]
        lastChapter                 <- map["lastChapter"]
        retentionRatio              <- map["retentionRatio"]
        shortIntro                  <- map["shortIntro"]
    }
}
